require.config({

	waitSeconds:0,
	baseUrl:"./",

	paths:{
		"underscore":"libs/underscore",
		"backbone":"libs/backbone",
		"marionette":"libs/backbone.marionette",
		"text":"libs/require.text",
		"style":"libs/css",
		"jquery":"libs/jquery",
        "water":"libs/waterbubble",
		"finger":"libs/jquery.finger",
		"iscroll":"libs/iscroll",
		"swiper":"libs/swiper.jquery.min",
		'echarts' : 'libs/echarts/echarts-all',
		'echartsBarBase' : 'libs/echarts/theme-bar-base',
		'echartsLineBase' : 'libs/echarts/theme-line-base',
		"icheck":"libs/icheck",
		"combox":"nuui/nuui-component/nuui-combox",
		"select":"nuui/nuui-component/nuui-select",
		"datepicker":"nuui/nuui-component/nuui-datepicker",
		"simplepicker":"nuui/nuui-component/nuui-simplepicker",
		"scroll":"nuui/nuui-component/nuui-scroll",
		"swipeout":"nuui/nuui-component/nuui-swipeout",
		"draggableMenu":"nuui/nuui-component/nuui-draggableMenu",
		"indexedList":"nuui/nuui-component/nuui-indexedList",
		"keyboard":"nuui/nuui-component/nuui-keyboard",
		"lazyLoad":"nuui/nuui-component/nuui-lazyLoad",

		"H5lock":"libs/H5lock"
	},

	shim:{
		"backbone":{deps:["underscore", "jquery"]},
		"marionette":{deps:["backbone"]},
		"finger":{deps:["jquery"]},
		"swiper":{deps:["jquery"]},
		"iscroll":{deps:["jquery"]},
		"icheck":{deps:["jquery"]},
        "water":{deps:["jquery"]},
	}
});

require(["libs/libs"], function(){
	// 请求css,先请求reset和public,再请求其他
	require(["style!css/public.css","style!css/reset.css"], function(){
		require([
			"style!css/banks.css",
			"style!css/common.css",
			"style!css/pages.css",
			"style!css/swiper.css",
			"style!css/iCheck.css",
			"style!css/iconfont.css",
			"style!css/caiyun/homepage2.css",
            "style!css/caiyun/cloudlecture.css",
            "style!css/caiyun/eventdetail.css",
            "style!css/caiyun/myorder.css",
            "style!css/caiyun/personalcenter.css",
            "style!css/caiyun/reset.css",
            "style!css/caiyun/servicehall.css",
            "style!css/caiyun/smartgroup.css",
            "style!css/caiyun/thinktankdetails.css",
            "style!css/caiyun/vouchercnenter.css",
		], function(){
			require(["nuui/nuui"], function(nuui){
				window.Nuui = window.Nuui || {};
				$.extend(window.Nuui, nuui);
				if(window.Nuui.os != "web"){
					window.Nuui.client = window.Nuui.native[window.Nuui.os];
				}
				require(["app/init"]);
			});
		});
	});
	
});
